package org.itstack.demo.design.event.listener;

import org.itstack.demo.design.LotteryResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Author: fanYuLe
 * @CreateTime: 2023-12-28  11:16
 * @Description: 两个监听事件的实现
 * MQ发送事件
 */
public class MQEventListener implements EventListener{
    private Logger logger = LoggerFactory.getLogger(MQEventListener.class);
    @Override
    public void doEvent(LotteryResult result) {
        logger.info("记录用户 {} 摇号结果(MQ)：{}",result.getuId(),result.getMsg());
    }
}
